Assigns XCO roles to a user or an LDAP group.
HOST, LOCAL, LDAP or TACACS. Default cli value is HOST.
<Tenant-name>Admin
. These examples assign the role of SystemAdmin.
# efa auth rolemapping add --name=user2 --role SystemAdmin -–auth-type HOST # efa auth rolemapping add --name=admin --role SystemAdmin --auth-type TACACS --auth-identifier 10.x.x.x # efa auth rolemapping add --name=viewer --role SystemAdmin -–type group -–auth-type LDAP -–auth-identifier ldapconfig
This example assigns a role to a TACACS group.
# efa auth rolemapping add --name=admin --role SystemAdmin --auth-type TACACS --auth-identifier 10.x.x.x Successfully added the role mapping. +-----------+-------------+ | attribute | value | +-----------+-------------+ | id | 44 | +-----------+-------------+ | name | admin | +-----------+-------------+ | role | SystemAdmin | +-----------+-------------+ | type | GROUP | +-----------+-------------+ | auth type | TACACS | +-----------+-------------+ | auth identifier | 10.x.x.x | +-----------+-------------+
# efa auth rolemapping add --name "cn=viewer,dc=extr,dc=com" --role NetworkOperator --type group --auth-type LDAP --auth-identifier ldapconfig Successfully added the role mapping. +-----------+-------------+ | attribute | value | +-----------+-------------+ | id | 45 | +-----------+-------------+ | name | cn=viewer,dc=extr,dc=com | +-----------+-------------+ | role | NetworkOperator | +-----------+-------------+ | type | GROUP | +-----------+-------------+ | auth type | LDAP | +-----------+-------------+ | auth identifier | ldapconfig | +-----------+-------------+ # efa auth rolemapping show --auth-type LDAP --auth-identifier ldapconfig # efa auth rolemapping show --auth-type TACACS --auth-identifier 10.x.x.xThis example displays all role assignments.
# efa auth rolemapping show +----+----------+-----------------+-------+-----------+------------+ | ID | Name | Role | Type | Auth Type | Auth Identifier | +----+----------+-----------------+-------+-----------+------------+ | 1 | user | SystemAdmin | USER | HOST | | +----+----------+-----------------+-------+-----------+------------+ | 43 | user2 | SystemAdmin | USER | HOST | | +----+----------+-----------------+-------+-----------+------------+ | 44 | admin | SystemAdmin | GROUP | TACACS | 10.x.x.x | +----+----------+-----------------+-------+-----------+------------+ | 45 | cn=viewer,dc=extr,dc=com | NetworkOperator | GROUP | LDAP | ldapconfig | +----+----------+-----------------+-------+-----------+------------+ # efa auth rolemapping show --auth-type LDAP --auth-identifier ldapconfig # efa auth rolemapping show --auth-type TACACS --auth-identifier 10.x.x.xThis example deletes the role for the user with ID 43.
# efa auth rolemapping remove --id 43 Deleted role mapping successfully